package com.ruoyi.info.service;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.info.domain.CmsSandbox;
import com.ruoyi.util.security.Result;
import com.ruoyi.util.security.SandboxResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * sandboxService接口
 * 
 * @author xwj
 * @date 2023-08-07
 */
public interface ICmsSandboxService 
{
    /**
     * 查询sandbox
     * 
     * @param id sandbox主键
     * @return sandbox
     */
    public CmsSandbox selectCmsSandboxById(Long id);

    /**
     * 查询sandbox列表
     * 
     * @param cmsSandbox sandbox
     * @return sandbox集合
     */
    public List<CmsSandbox> selectCmsSandboxList(CmsSandbox cmsSandbox);

    /**
     * 新增sandbox
     * 
     * @param cmsSandbox sandbox
     * @return 结果
     */
    public int insertCmsSandbox(CmsSandbox cmsSandbox);

    /**
     * 修改sandbox
     * 
     * @param cmsSandbox sandbox
     * @return 结果
     */
    public int updateCmsSandbox(CmsSandbox cmsSandbox);

    /**
     * 批量删除sandbox
     * 
     * @param ids 需要删除的sandbox主键集合
     * @return 结果
     */
    public int deleteCmsSandboxByIds(String ids);

    /**
     * 删除sandbox信息
     * 
     * @param id sandbox主键
     * @return 结果
     */
    public int deleteCmsSandboxById(Long id);

    AjaxResult uploadApp(SysUser currUser, MultipartFile file, String os) throws Exception;

    SandboxResult getSandboxResult(CmsSandbox sandbox);

    SandboxResult getSandboxTags(CmsSandbox sandbox);

    SandboxResult sandboxScreenshot(String taskId);

    SandboxResult sandboxNetwork(String taskId, Map<String, Object> paramMap);

    SandboxResult sandboxBehaviorProcess(String taskId, Map<String, Object> params);

    SandboxResult sandboxBehaviorEventsByPid(String taskId, String pid, String eventType, Map<String, Object> params);

    SandboxResult sandboxReportStatic(String taskId, Map<String, Object> params);
}
